package com.xuelang.pipeline.worker.client.crd;

import com.xuelang.pipeline.worker.client.common.result.ApiResult;
import com.xuelang.pipeline.worker.client.crd.dto.ApplicationDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import jakarta.validation.Valid;

/**
 * @author liuyuan.ly
 * @since 2024/7/26 9:54
 */
public interface IApplicationService {

    /**
     * 新增或者修改application
     *
     * @param dto
     * @return
     */
    @PostMapping(value = "/saveOrUpdate/crd/application", produces = "application/json;charset=utf-8")
    ApiResult<Boolean> saveOrUpdateApplication(@RequestBody @Valid ApplicationDTO dto);


}
